package com.neuedu.elmserver.pojo;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 订单表
 * </p>
 *
 * @author wyh
 * @since 2024-11-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Orders implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 订单编号;订单编号
     */
    @TableId(value = "order_id", type = IdType.AUTO)
    private Integer orderId;

    /**
     * 用户编号;用户编号
     */
    private Integer userId;

    /**
     * 商家编号;商家编号
     */
    private Integer businessId;

    /**
     * 收货地址编号;收货地址编号
     */
    private Integer addressId;

    /**
     * 下单时间;下单时间
     */
    private Date createTime;

    /**
     * 订单状态;0-未支付  1-已支付订单
     */
    private Integer status;

    /**
     * 订单总额
     */
    private Double toatal;

    @TableField(exist = false) //忽略mybatisPlus的字段映射
    private Business business;
}
